// 引入路由
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
import Order from '../components/Order.vue'
import Introduce from '../components/Introduce.vue'
import BuyCar from '@/components/BuyCar.vue';

const router = createRouter({
    history: createWebHashHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: "/",
            name: "Order",
            component: () => Order
        }, {
            path: "/introduce",
            name: "Introduce",
            component: () => Introduce
        },
        {
            path: "/buyCar",
            name: "BuyCar",
            component: () => BuyCar
        }
    ]
}
);
export default router;